package com.restaurant.application.shop.support;

import com.nebutown.base.data.ViewUpdate;
import com.nebutown.supporthome.AbstractImpl;
import com.nebutown.supporthome.CmdCapsule;
import com.restaurant.application.shop.Shop;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class AbstractShop extends AbstractImpl implements Shop {

    private static final Logger logger = LoggerFactory.getLogger(Shop.class);

    public final Class<?> getEffectiveInterface() {
        return Shop.class;
    }

    public Logger getLogger() {
        return logger;

    }

    private static final String privateDataType = "ShopData";

    public ShopData getData() {
        return escort.getData(ShopData.class);
    }

    public void setData(ShopData data) {
        escort.setData(data);
    }
    public static CmdCapsule CMD_SAVE = new CmdCapsule("save", 0, ShopData.class);
    public abstract ViewUpdate save(ShopData save, int[] seq);

    public static CmdCapsule CMD_CANCEL = new CmdCapsule("cancel", 1, null);

    public abstract ViewUpdate cancel(int[] seq);
}
